#ifndef _SHELL_BASE_
#define _SHELL_BASE_ 1
#include <unistd.h>
class Tsh;
class Base {
  Base(pid_t sid) : id(sid) {}
  pid_t id;

 public:
  static Base& obj(pid_t init = 1) {
    static Base base(init);
    return base;
  }
  pid_t getid() { return id; }
};
#endif  //_SHELL_BASE_